package yxy.game.pm2.module.union.player.tech;

import yxy.game.pm2.message.UnionMessage;

public class UnionTechHandle {
	public UnionMessage.UnionTech packTech(UnionTech tech) {
		UnionMessage.UnionTech.Builder builder = UnionMessage.UnionTech.newBuilder();

		builder.setDataId(tech.getDataId());
		builder.setLevel(tech.getLevel());
		builder.setPos(tech.getPos());

		return builder.build();
	}

}
